"use strict";(self.webpackChunkwebpack_frontend=self.webpackChunkwebpack_frontend||[]).push([[590],{89531:(t,e,n)=>{n.d(e,{A:()=>f});n(52675),n(89463),n(2259),n(45700),n(2008),n(51629),n(23792),n(89572),n(2892),n(67945),n(84185),n(83851),n(81278),n(79432),n(26099),n(3362),n(47764),n(23500),n(62953);var r=n(89668);const o={hash:"#popup-two-factor",url:"",handler:function(t){r.Y.instance.initForm(),t&&t()}};n(28706);var a=n(61219),i=n(86989);const s=function(t){var e=function(t){var e=t.text,n=t.title,r=t.blockedText;return'
\n ")}(t);return(0,i.A)({popupContent:e,popupBodyClasses:"popup-sm popup--redesign"})};function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function u(t){for(var e=1;e{n.d(e,{A:()=>y});const r={hash:"#popup-contacts",url:"/feedback",handler:function(t){t&&t()}};n(52675),n(89463),n(2259),n(45700),n(51629),n(23418),n(64346),n(23792),n(34782),n(89572),n(23288),n(62010),n(2892),n(84185),n(26099),n(27495),n(38781),n(47764),n(25440),n(23500),n(62953);var o=n(10245),a=n(84786),i=n(3223),s=n(84634),c=n(6076),l=n(57767),u=n(53448),p=n(74692);function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}function d(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return h(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return i=t.done,t},e:function(t){s=!0,a=t},f:function(){try{i||null==n.return||n.return()}finally{if(s)throw a}}}}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n{n.d(e,{A:()=>i});n(28706);const r={hash:"#popup-error-info",url:"",handler:function(t){t&&t()}};var o=n(61219),a=n(57356);r.beforeOpenHandler=function(){return{html:a.C.errorMessage?''):""}};const i=r},74773:(t,e,n)=>{n.d(e,{A:()=>o});n(27495),n(5746);const r={hash:"#popup-info",url:"/infoPopup".concat(window.location.search),handler:function(t,e){t&&t(e)},callback:function(){}},o=r},70298:(t,e,n)=>{n.d(e,{A:()=>y});n(27495),n(25440),n(5746);var r=n(25106),o=n(84634),a=(n(52675),n(89463),n(2259),n(45700),n(51629),n(23792),n(89572),n(2892),n(84185),n(26099),n(3362),n(9391),n(47764),n(23500),n(62953),n(3223)),i=n(84786),s=n(10245),c=n(53448),l=n(6076),u=n(74692);function p(t){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(t)}function f(t,e){for(var n=0;n{n.d(e,{A:()=>_,Y:()=>y});n(52675),n(89463),n(2259),n(2008),n(51629),n(23792),n(67945),n(84185),n(83851),n(81278),n(79432),n(26099),n(47764),n(23500),n(62953),n(45700),n(89572),n(2892),n(27495),n(25440),n(76031);var r,o=n(84634),a=n(84786),i=n(60021),s=n(61219),c=n(10245),l=n(3223),u=n(53448),p=n(74692);function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function h(t){for(var e=1;e1){var e=this.currentChannel===t.CHANNELS.sms?t.CHANNELS.email:t.CHANNELS.sms;this.channelToggleCnt.classList.remove("hide"),this._channelToggleButtonChangeText(e)}this.remainingAvailableAttempts||this.footer.classList.add("hide"),new a.A(p(this.form)),this.secondsTimer.start(),this._attachEvents()}else this._show2FABlocked()}},{key:"_show2FABlocked",value:function(){return this.formContainer.classList.add("hide"),this.footer.classList.add("hide"),this.blockedBlock.classList.remove("hide"),this}},{key:"_channelToggleButtonChangeText",value:function(t){return this.channelToggleButton.innerHTML=this.channelToggleButton.getAttribute("data-text-".concat(t)),this}},{key:"_changePopupText",value:function(t){return this.text.innerHTML=t,this}},{key:"_resendHandler",value:function(t){var e=this,n={userName:this.address,resendToken:this.resendToken,channel:t};return(0,c.A)().mutate({mutation:(0,c.$)("resend2FACode"),variables:n,fetchPolicy:"no-cache"}).then((function(t){var n=t.data.resend2FACode,r=n.remainingAvailableAttempts,o=n.resendToken,a=n.address;if(e.resendToken=o,e.address=a,!r){var i=60*window.two_factor_code_lifetime*1e3;setTimeout((function(){e._show2FABlocked()}),i)}e.secondsTimer.start()}))}},{key:"_sendForm",value:function(){var t=this,e=h(h({},this.mutationVariables),{},{code:this.input.value});(0,c.A)().mutate({mutation:(0,c.$)(this.config.mutation),variables:e,fetchPolicy:"no-cache"}).then((function(e){return t.callback(e)})).catch(this._errorHandler)}},{key:"_attachEvents",value:function(){var e=this;this.input.addEventListener("keyup",(function(){e.input.value=e.input.value.replace(/[^0-9]/g,"")})),this.submitButton.addEventListener("click",(function(t){t.preventDefault(),(0,u.Q_)(e.submitButton),e._sendForm()})),this.resendLink.addEventListener("click",(function(t){t.preventDefault(),e.toggleResendContainer()._resendHandler(e.currentChannel.toUpperCase()).catch((function(){e._show2FABlocked()}))})),this.channelToggleButton.addEventListener("click",(function(n){n.preventDefault();var r=e.currentChannel,o=e.currentChannel===t.CHANNELS.sms;e.currentChannel=o?t.CHANNELS.email:t.CHANNELS.sms,e.secondsTimer.interval?e.secondsTimer.stop():e.toggleResendContainer(),e._channelToggleButtonChangeText(r)._resendHandler(e.currentChannel.toUpperCase()).then((function(){var t=(0,s.ln)(e.config[e.currentChannel].text,0,h({},o?{phone:e.address}:{email:e.address}));e._changePopupText(t)})).catch((function(){e._show2FABlocked()}))}))}}])&&v(e.prototype,n),r&&v(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,n,r}();r=y,m(y,"instance",null),m(y,"TYPES",{login:"login",changeEmail:"changeEmail"}),m(y,"CHANNELS",{email:"email",sms:"sms"}),m(y,"typesConfig",m(m({},r.TYPES.login,m(m(m({mutation:"auth",title:(0,s.trans)(s.transConstant.POPUP_TITLE_ENTER)},r.CHANNELS.email,{text:s.transConstant.LOGIN_CONFIRMATION_MASSAGE_EMAIL}),r.CHANNELS.sms,{text:s.transConstant.LOGIN_CONFIRMATION_MASSAGE_PHONE}),"blockedText",(0,s.trans)(s.transConstant.LOGIN_CONFIRMATION_BLOCKED))),r.TYPES.changeEmail,m(m({mutation:"changeUserEmail",title:(0,s.trans)(s.transConstant.NEW_EMAIL)},r.CHANNELS.sms,{text:s.transConstant.CHANGE_EMAIL_UNCONFIRMED_PHONE_MESSAGE}),"blockedText",(0,s.trans)(s.transConstant.CHANGE_EMAIL_LIMIT_EXHAUST_TEXT))));const _=function(t,e,n,r){return new y(t,e,n,r)}},60021:(t,e,n)=>{n.d(e,{$:()=>p});n(52675),n(89463),n(2259),n(45700),n(28706),n(74423),n(23792),n(89572),n(2892),n(84185),n(26099),n(21699),n(47764),n(62953),n(76031);var r=n(61219),o=n(84634);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function i(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:this.DefaultTimerSec;this.timer&&(this.interval&&clearInterval(this.interval),this.restartTime=e,this.timer.innerHTML=this._generateContent(e),this.interval=setInterval((function(){e>1?(e--,t.timer.innerHTML=t._generateContent(e)):t.selector.includes("data-reg-retention-timer")?t.timer.innerHTML="00 : 00":(t.timer.innerHTML="0",t.reset()),t.restartTime=e}),1e3))}},{key:"reset",value:function(){return this.interval&&clearInterval(this.interval),this.callback(),this.interval=null,this}},{key:"stop",value:function(){return this.interval&&clearInterval(this.interval),this.interval=null,this}},{key:"restart",value:function(){return this.start(this.restartTime),this}},{key:"_generateContent",value:function(t){if("minutes"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.type)){var e,n=0,r=t<660?"0":"";return t>60?(e=+t%60,n=Math.floor(+t/60)):60==t?(n=1,e=0):e=+t,e<10&&(e="0"+e),this.selector.includes("data-reg-retention-timer")?"".concat(r).concat(n," : ").concat(e):"".concat(r).concat(n," : ").concat(e," ").concat((0,o.bv)(e,c,l,u))}return"".concat(t," ").concat((0,o.bv)(t,c,l,u))}}],e&&i(t.prototype,e),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}()},86989:(t,e,n)=>{n.d(e,{A:()=>r});n(28706);const r=function(t){var e=t.popupContent,n=void 0===e?"":e,r=t.popupClasses,o=void 0===r?"":r,a=t.popupBodyClasses,i=void 0===a?"":a,s=t.popupId,c=void 0===s?"":s;return'')}}}]);